<template>
    <Panel :class="$style.panel" title="理财精选">
        <ul :class="$style.content">
            <li :class="$style.item">
                <img src="//img12.360buyimg.com/jrpmobile/jfs/t8881/304/1359242815/2540/5ef07179/59b90050N62f41061.png?width=56&height=56" alt="">
                <div>
                    <h4>月度理财</h4>
                    <p>预期年化收益率5.0%</p>
                </div>
                <em>去赚钱 ></em>
            </li>
            <li :class="$style.item">
                <img src="//img12.360buyimg.com/jrpmobile/jfs/t8929/33/1393593833/1749/1e115bd7/59b900e6N73c7b311.png?width=56&height=56" alt="">
                <div>
                    <h4>季度理财</h4>
                    <p>预期年化收益率5.5%</p>
                </div>
                <em>去赚钱 ></em>
            </li>
            <li :class="$style.item">
                <img src="//img12.360buyimg.com/jrpmobile/jfs/t8902/275/1411242449/2807/a2cc902a/59b90111N4e88098c.png?width=56&height=56" alt="">
                <div>
                    <h4>一年理财</h4>
                    <p>预期年化收益率6%</p>
                </div>
                <em>去赚钱 ></em>
            </li>
        </ul>
    </Panel>
</template>

<script>
    import Panel from '../core/panel.vue'
    export default {
        components : {
            Panel
        }
    }
</script>

<style lang="scss" module>
    @import '../../css/element.scss';
    .panel {
        @include panel;
        >h4 {
            border-bottom: 1px solid #ddd;
        }

        .content {
            @include flex;

            .item {
                @include flex(row);
                align-items: center;
                height: 140px;

                &:after {
                    content: '';
                    box-sizing: border-box;
                    height: 0;
                    width: 100%;
                    border-bottom: 1px solid #ddd;
                    margin-left: 150px;
                }
                &:last-child:after {
                    border-bottom: #fff;
                }

                >img {
                    width: 88px;
                    height: 88px;
                    display: inline-block;
                    margin: 0 32px;
                }

                >div {
                    font-size: 32px;
                    color: #333;
                    line-height: 1.8;
                    width: 344px;
                    
                    p {
                        font-size: 24px;
                        color: #ff3232;
                        line-height: 1.1;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                        overflow: hidden;
                    }
                }

                >em {
                    font-size: 28px;
                    color: #ff801a;
                }
            }
        }
    }
</style>
